<!--
 * @title: 重定向路由
 * @author: andy.ten@tom.com & xukaixing@hotmail.com
 * @Date: 2022-03-28 15:24:11
 * @LastEditors: andy.ten@tom.com
 * @LastEditTime: 2022-03-30 18:30:30
 * @version: 1.0.1
 * @copyright: copyright (c) 2022 andyten
 *  node: you can not copy and/or use and/or modify this program free,
 *  please reserve the segment above.Please mail me if you have any question.
-->
<script>
export default {
  name: 'Redirect',
  created() {
    const { params, query } = this.$route;
    const { path } = params;
    this.$router.replace({ path: '/' + path, query });
  },
  render: function(h) {
    return h(); // avoid warning message
  }
};
</script>
